package com.web.kdl.util;

import com.sun.org.apache.xpath.internal.objects.XString;
import org.springframework.stereotype.Component;

@Component
public class RedisKeyUtil {

    // 系统接口 key
    // value : SystemBaseVo
    public static String SystemInfoKey = "system:SystemInfo";
    // value : List<SysEleVo>
    public static String SystemEleInfoKey = "system:SystemEleInfo";
    // value ：List<SiteMonVo>
    public static String SystemEventKey = "system:SystemEvent";

    // 站点接口
    // value : SiteBaseVo
    public static String SiteBaseInfoKey = "site:SiteInfo";
    // value : List<SitePowerVo>
    public static String SiteMaxPowerKey = "site:SiteMaxPower";
    // value : List<SiteDetailVo>
    public static String SiteDetailKey = "site:SiteDetail";
    // value : List<EnergyDataVo>
    public static String SiteEleKey = "site:SiteEle";
    // value : List<SiteMonVo>
    public static String SiteMonKey = "site:SiteMon";
    // value : FLywheelStatusVo
    public static String SiteStatusKey = "site:SiteStatus";
    //
    public static String getRedisKey(int matrixId,int flywheelSerial) {
        return "matrix"+matrixId+"_flywheel"+flywheelSerial;
    }

    public static String getRedisTimeKey() {
        return "SEND_TIME";
    }
    public static String getRedisKey(int matrixId,String flywheelName) {
        return "matrix"+matrixId+"_"+flywheelName;
    }


}
